package com.wunu.smartlock1.net.response;

import android.util.Log;

public class LoginResult {
    private int code;
    private String msg;
    private  LoginInfo data;
    public String toString(){
        return "{code: "+code+"\tmsg: "+msg+"\tdata:"+data+"}";
    }
    public class LoginInfo{
        private String token;

        private long expires;
        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public long getExpires() {
            return expires;
        }

        public void setExpires(long expires) {
            this.expires = expires;
        }
        public String toString(){
            return "{token: "+token+"\texpires"+expires+"}";
        }
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode(){
        return this.code;
}
    public void setCode(int code){
    this.code = code ;
}
public LoginInfo getData(){
    return this.data;
}
    public void setData(LoginInfo info){
    this.data = info;
}

    public LoginResult() {
    }

}
